export default{
  namespaced:true,
  state:{
	 orderPrice:0,
	 ways:[
	 	'自提','配送'
	 ],
	 payWays:[
	 	'微信支付','货到刷黑天鹅卡'
	 ],
	 datetime:[
			 ["01.12 周五", "01.13 周六","01.14 周天","01.15 周一","01.16 周二","01.17 周三","01.18 周三"],
			 ["9:00-10:00", "10:00-11:00","11:00-12:00","12:00-13:00","13:00-14:00","14:00-15:00","15:00-16:00",]
	 ],
	 spoonsNum:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],
	 candleType:["线蜡烛","数字蜡烛"]
  },
  
  mutations:{
	sumPrice(state,value){
		const ordergoods = uni.getStorageSync("cartList")
		for (let order of ordergoods) {
			this.orderPrice=order.number*order.goods.sku[0].specification_list[0].price
		}
	}
	  
	}
}